# Contributor: Krassy Boykinov <kboykinov@teamcentrixx.com>
# Maintainer: Krassy Boykinov <kboykinov@teamcentrixx.com>
pkgname=livi
pkgver=0.0.4
pkgrel=1
pkgdesc="A small video player targeting mobile devices"
url="https://gitlab.gnome.org/guidog/livi"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
	desktop-file-utils
	gst-plugins-bad-dev
	gstreamer-dev
	gtk4.0-dev
	libadwaita-dev
	meson
	"
checkdepends="appstream-glib"
source="
	https://gitlab.gnome.org/guidog/livi/-/archive/v$pkgver/livi-v$pkgver.tar.gz
	format_specifier.patch
	rename.patch
	"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
9696be81dceb8f44b48f9221bec1bdac011158caec05479bb870d5cd4369923f0a68e053204868cac4d84fcf9cf280f3b7af471cfbb620a0ac5adc373816a10a  livi-v0.0.4.tar.gz
d54ed178bef4dcb8b1b24ad7b2346432368306cd8e40ca092a924c290884576e4a434221d4a2085c63212522387a7b2251fde1190e23ebaab811c28e2bb84baf  format_specifier.patch
f8b9c9ceffdb9c08d42ecf44222e5972b6ec11a6dfaaa1d729bf68a16ade9da44c4d40e1094a6a03f6e79620dc75466992d8e05584d89884c25bc71d3715e5e1  rename.patch
"
